package com.huang.auth.job;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author HuangShen
 * @Date 2022/3/10 19:00
 * @Describe
 */
@Component
@Slf4j
public class DemoJobHandler {

    @XxlJob(value = "DemoJobHandler")
    public void testJob() {
        XxlJobHelper.log("XXL-JOB, Hello World.");
        log.info("XXL-JOB, Hello World");
    }


}
